﻿using System;
using Autodesk.Revit.DB;
using YJKRevitKernel.ElementSearchUtility.LinkDocumentSuite;
using YJKRevitDimensionText.VerticalAutoDim.GeoModel;

namespace YJKRevitDimensionText.VerticalAutoDim.GeoTopIntersect
{
	internal class RailingGeoTopIntersect : IGeoTopIntersectCreator
	{
		public ElementFilter Filter
		{
			get
			{
				return new ElementCategoryFilter(BuiltInCategory.OST_Railings);
			}
		}

		public Func<BaseLinkDocumentResultBean, bool> IsElementValid
		{
			get
			{
				return null;
			}
		}

		public IPlanarGeo CreatePlanarGeo(Element elem, Plane pl, Transform transform)
		{
			return new RailingGeo(elem, pl, transform);
		}

		public bool IsElementValidByGeo(Element elemSrc, Element elemDes)
		{
			return true;
		}
	}
}
